<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改注册人信息</title>
<form action="/updateEngineer" method="post" >
	<input type="hidden" name="id" value=${id}>
	<div>
		<p>
			<span>姓名：</span><input type="text" value="${engineer.name }" name="name" />
		</p>
		<p>
			<span>性别：</span><input type="text" value="${engineer.gender }" name="gender" />
		</p>
		<p>
			<span>省市：</span><input type="text" value="${engineer.province }" name="province" />
		</p>
		<p>
			<span>申请注册单位：</span><input type="text" value="${engineer.company }" name="company" />
		</p>
		<p>
			<span>所学专业：</span><input type="text" value="${engineer.myProfession }" name="professional" />
		</p>
		<p>
			<span>申请注册专业1：</span> <select name="regProfession1">
				<c:forEach items="${professions}" var="c">
					<option value="${c.id}" <c:if test="${c.name == engineer.regProfessionName1}">selected</c:if>>${c.name }</option>
				</c:forEach>
			</select>
		</p>
		<p>
			<span>申请注册专业2：</span> <select name="regProfession2">
				<c:forEach items="${professions}" var="c">
					<option value="${c.id}" <c:if test="${c.name == engineer.regProfessionName2}">selected</c:if>>${c.name }</option>
				</c:forEach>
			</select>
		</p>
		<p>
			<span>执业资格证书编号：</span><input type="text" value="${engineer.certNo }" name="certNo" />
		</p>
		<p>
			<span>注册号：</span><input type="text" value="${engineer.registerNum }" name="registerNum" />
		</p>
		<p>
			<span>有效期：</span><input type="text" value="${engineer.validatePeriod }" name="validatePeriod" />
		</p>
		<button type="submit">保存</button>
	</div>
</form>

</head>
<body>

</body>

</html>